package com.situ.object.dao;

import com.situ.object.entity.Teacher;
import com.situ.object.entity.User;

import java.util.List;

/*
* 用户接口
* */
public interface TeacherDao {

    //根据教师名查询教师信息
    Teacher selectByTeacherName(String teacher_name);

    //添加教师信息
    int addTeacher(Teacher teacher);

    //删除教师信息
    int deleteTeacher(Integer id);

    //根据用户名删除
    int deleteByName(String name);

    //查询全部教师信息
    List<Teacher> selectAll();

    //修改
    int edit(Teacher teacher);
}
